﻿<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	request.setCharacterEncoding("UTF-8");
	String cp = request.getContextPath(); 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>무제 문서</title>
<style>
.a {
	margin: 0px;
	padding: 0px;
	height: 80px;
	width: 120px;
}
.money {
	color: #F60;
}
</style>
<link href="<%=cp%>/tour/css/common.css" rel="stylesheet" type="text/css" />
<link href="<%=cp%>/tour/css/reset.css" rel="stylesheet" type="text/css" />
<link href="<%=cp%>/tour/css/fit.css" rel="stylesheet" type="text/css" />
<link href="<%=cp%>/tour/css/fitExt.css" rel="stylesheet" type="text/css" />
<link href="<%=cp%>/tour/css/cont_free.css" rel="stylesheet" type="text/css" />
<link href="<%=cp%>/tour/css/layout_free.css" rel="stylesheet" type="text/css" />
<link href="<%=cp%>/tour/css/style_tour.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">

	function searchData(){
		
		var f = document.searchForm;
		
		f.action = "<%=cp%>/tour.action";
		f.submit();
		
	}



</script>
</head>
<body>
<div align="center">
	<table>
	<tr>	
			
			<td><a href="<%=cp%>/tour/tourListArticle.action?tourNo=1">
			<img alt="" src="<%=cp%>/tour/image/main/ProductMgr_216(0).gif" /></a></</td>
			<td><a href="<%=cp%>/tour/tourListArticle.action?tourNo=2">
			<img alt="" src="<%=cp%>/tour/image/main/ProductMgr_217(2).gif"/></a></td>
			<td><a href="<%=cp%>/tour/tourListArticle.action?tourNo=3">
			<img alt="" src="<%=cp%>/tour/image/main/ProductMgr_218.gif" /></a></td>
			<td><a href="<%=cp%>/tour/tourListArticle.action?tourNo=5">
			<img alt="" src="<%=cp%>/tour/image/main/ProductMgr_219(1).gif" /></a></td>
	</tr>		
	</table>

	<table>
	
	<tr >
	
		<td colspan="4">
		<div style="position: relative; left:50px;" >
		<img src="<%=cp%>/tour/image/main/itsu.jpg" />
		</div>	
		</td>
	
	</tr>
	
	<tr>
		<td>
		<img src="<%=cp%>/tour/image/main/europe.jpg" />
		</td>
	<c:forEach var="dto" items="${lists1}">	
	
	<td>
		<a href="<%=cp%>/tour/tourListArticle.action?tourNo=${dto.tourNo}">
        <img src="<%=cp%>/pds/data/${dto.image}" width="118" height="88" alt="1" />
		<div class="a">
		  <p class="a">${dto.memo}</p>
		  <strong class="money"><p class="a">${dto.price}원</p></strong>
		
		</div>
		</a>
	</td>
	
	</c:forEach>
  	</tr>     
  
	

	<tr>
		<td>
		<img src="<%=cp%>/tour/image/main/japan.jpg" />
		</td>
	<c:forEach var="dto" items="${lists2}">	
	
	<td>
		<a href="<%=cp%>/tour/tourListArticle.action?tourNo=${dto.tourNo}">
        <img src="<%=cp%>/pds/data/${dto.image}" width="118" height="88" alt="1" />
		<div class="a">
		  <p class="a">${dto.memo}</p>
		  <strong class="money"><p class="a">${dto.price}원</p></strong>
		
		</div>
		</a>
	</td>
	
	</c:forEach>
       
	</tr>
	
		<tr>
		<td>
		<img src="<%=cp%>/tour/image/main/america.jpg" />
		</td>
	<c:forEach var="dto" items="${lists3}">	
	
	<td>
		<a href="<%=cp%>/tour/tourListArticle.action?tourNo=${dto.tourNo}">
        <img src="<%=cp%>/pds/data/${dto.image}" width="118" height="88" alt="1" />
		<div class="a">
		  <p class="a">${dto.memo}</p>
		  <strong class="money"><p class="a">${dto.price}원</p></strong>
		
		</div>
		</a>
	</td>
	
	</c:forEach>
       
	</tr>
	
		<tr>
		<td>
		<img src="<%=cp%>/tour/image/main/dong.jpg" />
		</td>
	<c:forEach var="dto" items="${lists4}">	
	
	<td>
		<a href="<%=cp%>/tour/tourListArticle.action?tourNo=${dto.tourNo}">
        <img src="<%=cp%>/pds/data/${dto.image}" width="118" height="88" alt="1" />
		<div class="a">
		  <p class="a">${dto.memo}</p>
		  <strong class="money"><p class="a">${dto.price}원</p></strong>
		
		</div>
		</a>
	</td>
	
	</c:forEach>
       
	</tr>
	
</table>
</div>	

<div id ="container">
	<!-- 전체상품&검색 -->
	    <!-- 상품검색  -->
    <div id="free_goods_search" class="free_goods_search clearFix mgt35">
        <h2 class="floatL">
            <img alt="상품검색" src="<%=cp%>/tour/image/list_sub_search.gif"/></h2>
			
        <div class="loc floatL">
            
                    
                    
                 <!-- 검색 -->
          <form name="searchForm" method="post" action="">
          
			<input type="text" name="searchValue"  />
			<input type="image" src="<%=cp%>/tour/image/btn_main_search.gif" onclick="searchData();"/>
		  </form>
                 <!-- 검색 -->
                 
                    
                
        </div>
        <div class="report floatL mgt5">
            총 <strong class="tred">${totalDataCount}</strong>개의 상품이 있습니다.
        </div>
        <div class="range floatR">
            <script>
                if('' != "")
                    jQuery('#selPageSize').val('');
            </script>
        </div>
    </div>
    <!-- //상품검색  -->
    
    <!-- 검색결과: 상품리스트  -->
    <ul class="free_search_report clearFix mgt25">
        <c:forEach var="dto" items="${lists}">
                <li>
                    <div class="rbox">
                        <div class="rtop">
                            <span class="tl"></span><span class="tr"></span>
                        </div>
                        <div class="boxline_l">
                            <div class="boxline_r clearFix">
                            
                                <div class="gimg">
                                    <a href="<%=cp%>/tour/tourListArticle.action?tourNo=${dto.tourNo}">
                                    <img class="img_s2" alt="" src="<%=cp%>/pds/data/${dto.image}" />
                                    </a></div>
                                <div class="ginfo">
                                    <div class="gcode"  style="cursor: pointer;">
                                        상품코드 <strong>
                                            ${dto.tourNo}</strong></div>
                                    <div class="gtit"  style="cursor: pointer;">
                                        ${dto.subject}
                                    </div>
                                    <div class="subtxt"  style="cursor: pointer;">
                                        ${dto.memo}</div>
                                    <div class="price">
                                         <strong class="fm1">
                                             ${dto.price}</strong> <span>원</span></div>
                                </div>
                            </div>
                        </div>
                        <div class="rbot">
                            <span class="bl"></span><span class="br"></span>
                        </div>
                    </div>
                </li>
          </c:forEach>  
          </ul>
     </div>
     
      <!-- //검색결과: 상품리스트  -->
    <div class="pdb50 clear">
        
 
        <div class="paging_type1"> 
            <table cellSpacing="0" cellPadding="0" border="0" width="100%">
            <tbody>
            <tr align=center>
            <td>&nbsp;</td>
            <td width="15px">
            <a href="<%=cp%>/tour.action">
            <img src="<%=cp%>/tour/image/icon_pere2.gif" border=0 />
            </a>
            </td>
            
            <td width="15px">
           
            <a href="<%=cp%>/tour.action?pageNum=${pageNum-1}">
            
            <img src="<%=cp%>/tour/image/icon_pere1.gif" border=0/>
            </a>
            </td>
            <td width="140px">&nbsp;<style="color:#00A5BD;">
            <strong>
			<p>
				<c:if test="${totalDataCount != 0}">
					${pageIndexList}
				</c:if>
				<c:if test="${totalDataCount == 0 }">
					등록된 게시물이 없습니다.
				</c:if>	
			</p>
		</strong>&nbsp;&nbsp;
            &nbsp;</td><td width="15px">
            <a href="<%=cp%>/tour.action?pageNum=${pageNum+1}"><img src="<%=cp%>/tour/image/icon_next1.gif" border=0 /></a></td><td width="15px"><a href="<%=cp%>/tour.action?pageNum=${totalPage}"><img src="<%=cp%>/tour/image/icon_next2.gif" border=0 /></a></td><td width="100px">(전체 <strong>${totalPage}</strong> Page)</td><td>&nbsp;</td></tr></tbody></table>
       
        </div>
    </div>
</body>
</html>
